<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
  #d01{
    width: 50px;
    height: 50px;
    border:25px solid red;
    background-color: blue;
    margin-top:25px;
    margin-left:25px;
  }
#d02{
  width: 100px;
  height: 100px;
  border:5px solid green;
  border-radius: 3px;
  margin-left: 125px;
  padding-top: 50px;
  padding-left: 50px;
  box-sizing:border-box;
}
  </style>
</head>
<body>
    <div id="d01"><div></div></div>
  <div id="d02">哈喽</div>
</body>
</html>